home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / include / graphics / gfxmacros.h
C/C++ Source or Header  |  1996-10-23  |  1KB  |  35 lines

  1. #ifndef GRAPHICS_GFXMACROS_H
  2. #define GRAPHICS_GFXMACROS_H
  3.  
  4. /*
  5.     (C) 1995-96 AROS - The Amiga Replacement OS
  6.     $Id: gfxmacros.h,v 1.1 1996/10/23 16:33:01 aros Exp $
  7.  
  8.     Desc: AmigaOS include file graphics/gfxmacros.h
  9.     Lang: english
  10. */
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #   include <exec/types.h>
  14. #endif
  15.  
  16. #ifndef  GRAPHICS_RASTPORT_H
  17. #   include <graphics/rastport.h>
  18. #endif
  19.  
  20. /* Some macros which should be functions... */
  21. #define SetDrPt(w,p)    {(w)->LinePtrn = p;(w)->Flags |= FRST_DOT;(w)->linpatcnt=15;}
  22. #define SetAfPt(w,p,n)  {(w)->AreaPtrn = p;(w)->AreaPtSz = n;}
  23. #define SetWrMsk(w,m)   {(w)->Mask = m;}
  24. #define BNDRYOFF(w)     {(w)->Flags &= ~AREAOUTLINE;}
  25.  
  26. /* Compatibility macros for pre V39 */
  27. #define SafeSetOutlinePen(w,c)  {if (GfxBase->LibNode.lib_Version<39) { (w)->AOlPen = c;(w)->Flags |= AREAOUTLINE;} else SetOutlinePen(w,c); }
  28. #define SafeSetWriteMask(w,m)   {if (GfxBase->LibNode.lib_Version<39) { (w)->Mask = (m);} else SetWriteMask(w,m); }
  29.  
  30. /* Shortcuts */
  31. #define DrawCircle(rp,cx,cy,r)  DrawEllipse(rp,cx,cy,r,r);
  32. #define AreaCircle(rp,cx,cy,r)  AreaEllipse(rp,cx,cy,r,r);
  33.  
  34. #endif /* GRAPHICS_GFXMACROS_H */
  35.